package com.cly.mapper;

import com.cly.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

//表示mybatis 的mapper类
@Mapper
@Repository
public interface UserMapper {
    List<User> queryUserList();

    User queryUserById(int id);
    int addUser (User user);

    int updateUser(User user);

    int deleteUser(int id);

}
